package chen.web.config.spring.blog;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import chen.web.blog.BlogManager;
import chen.web.blog.BlogManagerImpl;
import chen.web.user.AccountManager;

@Configuration
public class BlogManagerConfig {

	private @Autowired AccountManager am;
	public @Bean BlogManager blogManager(){
		BlogManager bm = new BlogManagerImpl(am);
		return bm;
	}
}
